dtd validators provide basic structural validation dtd驗證器提供基本的結(jié)構(gòu)化驗證。
dtd is pretty good at structural validation dtd非常適合結(jié)構(gòu)性驗證。
applications can rely on xml parsers to do some structural validation, as well as data type checking when schemas are used 應用程序可依賴xml分析器進行某些結(jié)構(gòu)驗證以及數(shù)據(jù)類型檢查(當使用架構(gòu)時)。
schema languages help in that respect, but for maximum reliability you want to adopt a layered approach and not limit yourself to structural validations 模式語言可以發(fā)揮一定的作用,但是要提高可靠性,必須采用分層的方法,而且不僅限于結(jié)構(gòu)性驗證。
xml is ideally suited for this approach, thanks to the availability of schema languages such as w3c xml schema and relax ng and structural validation languages such as schematron 由于能夠使用樣式語言(如w3cxmlschema和relaxng)以及schematron這樣的結(jié)構(gòu)化驗證語言,所以xml非常適合于這種方法。